home *** CD-ROM | disk | FTP | other *** search
- -- background: 2764 from stack: in.95
- -- bmap block id: 0
- -- flags: 4000
- -- background id: 0
- -- name: control
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=143 top=188 right=244 bottom=207
- -- title width / last selected line: 0
- -- icon id / first selected line: 8538 / 8538
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Scan Volume
- ----- HyperTalk script -----
- on mouseUp
- set the hilite of me to true
- global diskList
- put empty into bg field "Report"
- set scroll of bg field "Report" to 0
- if diskList is empty or the number of lines in diskList is 0 then
- beep
- answer "No disk to scan..." with "OK"
- set hilite of me to false
- exit mouseUp
- end if
- lock screen
- put "-----------------------------------------------" into dashes
- put return & "Select disk to scan:" into prompt
- get showList(diskList,return,prompt,true,"OK,Cancel^,All","")
- if line 1 of it is "Cancel" then
- set hilite of me to false
- exit mouseUp
- else if line 1 of it is "All" then
- put diskList into vList
- else
- put line 2 to (the number of lines of it) of it into vList
- end if
- set cursor to watch
- repeat with v = 1 to the number of lines of vList
- put item 1 of line v of vList & ":" into vName
- put "Scanning" && quote & item 1 of line v of vList & quote into bg field "progressReport"
- unlock screen
- put empty into files
- put empty into fCreator
- repeat with i=1 to the number of lines in bg field "types"
- put line i of bg field "types" into fType
- if i is 1 then
- get wickedFind(vName,fCreator,fType,files,true)
- if v = 1 then
- put "Volume" && quote & item 1 of line v of vList & quote & return into theReport
- else
- put return & return & return & "Volume" && quote & item 1 of line v of vList & quote & return into theReport
- end if
- put char 1 to length(theReport) of dashes & return after theReport
- put empty into fCreator
- if line 1 of it is not 0 then
- beep
- put return & "ΓÇóΓÇó Scan failed ΓÇóΓÇó" & return after theReport
- put "ΓÇóΓÇó Error" && line 1 of it && "ΓÇóΓÇó" after theReport
- exit repeat
- end if
- put return & "ΓÇóΓÇó" && line i of bg field "descriptions" & return & return after theReport
- else
- get wickedFind(vName,fType,fCreator,files,true)
- if line 1 of it is not 0 then
- beep
- put return & "ΓÇóΓÇó Scan failed ΓÇóΓÇó" & return after theReport
- put "ΓÇóΓÇó Error" && line 1 of it && "ΓÇóΓÇó" after theReport
- exit repeat
- end if
- put return & return & "ΓÇóΓÇó" && line i of bg field "descriptions" & return & return after theReport
- end if
- if the number of lines in it < 2 then
- put "ΓÇóΓÇó None Found ΓÇóΓÇó" & return after theReport
- else
- delete line 1 of it
- get sorter(it,"A",1)
- put it after theReport
- end if
- end repeat
- put theReport after bg field "Report"
- end repeat
- put return & "ΓÇóΓÇó report prepared on" && the short date && the short time & return after bg field "Report"
- put empty into bg field "progressReport"
- set the hilite of me to false
- end mouseUp
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=460 top=19 right=64 bottom=497
- -- title width / last selected line: 0
- -- icon id / first selected line: 18229 / 18229
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Info
- ----- HyperTalk script -----
- on mouseUp
- if not visible of card field "info" then
- lock screen
- --set hilite of the target to true
- hide bg button "Quit"
- hide bg button "Go Home"
- show card field "info"
- unlock screen with visual effect wipe down
- else
- lock screen
- hide card field "info"
- show bg button "Quit"
- show bg button "Go Home"
- unlock screen with visual effect wipe up
- set hilite of the target to false
- end if
- end mouseUp
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=32 top=80 right=99 bottom=105
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 7 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=5 top=322 right=342 bottom=395
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: progressReport
-
-
- -- part 9 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=47 top=103 right=192 bottom=230
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Volumes
-
-
- -- part 11 (field)
- -- low flags: 01
- -- high flags: 4007
- -- rect: left=227 top=78 right=320 bottom=501
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 4
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Report
-
-
- -- part 14 (field)
- -- low flags: 80
- -- high flags: 4007
- -- rect: left=198 top=100 right=189 bottom=260
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: types
-
-
- -- part 15 (field)
- -- low flags: 80
- -- high flags: 4007
- -- rect: left=340 top=7 right=83 bottom=457
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: descriptions
-
-
- -- part 16 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=33 top=188 right=245 bottom=123
- -- title width / last selected line: 0
- -- icon id / first selected line: 1009 / 1009
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Update Volume List
- ----- HyperTalk script -----
- on mouseUp
- getVolumes
- end mouseUp
-
-
- -- part 17 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=145 top=255 right=306 bottom=205
- -- title width / last selected line: 0
- -- icon id / first selected line: 1007 / 1007
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Print Report
- ----- HyperTalk script -----
- on mouseUp
- if bg field "Report" is empty then
- beep
- answer "No report to print..."
- else
- printField "bg field Report"
- end if
- end mouseUp
-
-
- -- part 18 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=398 top=21 right=62 bottom=445
- -- title width / last selected line: 0
- -- icon id / first selected line: 21700 / 21700
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Go Home
- ----- HyperTalk script -----
- on mouseUp
- answer "Switch to Home stack?" with "cancel" or "OK"
- if it is "OK" then
- visual effect venetian blinds to black
- visual effect venetian blinds
- go home
- end if
- end mouseUp
-
-
-
- -- part 19 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=353 top=19 right=64 bottom=386
- -- title width / last selected line: 0
- -- icon id / first selected line: 1015 / 1015
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Quit
- ----- HyperTalk script -----
- on mouseUp
- answer "Quit HyperCard?" with "cancel" or "OK"
- if it is "OK" then doMenu "Quit HyperCard"
- end mouseUp
-
-
-
- -- part 20 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=50 top=256 right=304 bottom=107
- -- title width / last selected line: 0
- -- icon id / first selected line: 1004 / 1004
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Save Report
- ----- HyperTalk script -----
- on mouseUp
- if bg field "Report" is empty then
- beep
- answer "No report to save..."
- else
- get "Program Report" && the short date
- put newFileName("Save Report As:",it) into fileName
- if fileName is not empty then
- open file fileName
- write bg field "Report" to file fileName
- close file fileName
- end if
- end if
- end mouseUp
-